package com.ruoyi.myshop.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品管理对象 shop_goods
 * 
 * @author HuaQP
 * @date 2024-07-02
 */
public class Goods extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 分类id */
    @Excel(name = "分类id")
    private Long categoryId;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 商品规格 */
    private String spec;

    /** 卖点 */
    private String sellPoint;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal price;

    /** 库存量 */
    @Excel(name = "库存量")
    private Long count;

    /** 图片 */
    @Excel(name = "图片")
    private String img;

    /** 状态 */
    @Excel(name = "状态")
    private Integer status;

    /** 详情 */
    private String content;

    /** 图片集 */
    private String album;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setSpec(String spec) 
    {
        this.spec = spec;
    }

    public String getSpec() 
    {
        return spec;
    }
    public void setSellPoint(String sellPoint) 
    {
        this.sellPoint = sellPoint;
    }

    public String getSellPoint() 
    {
        return sellPoint;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setCount(Long count) 
    {
        this.count = count;
    }

    public Long getCount() 
    {
        return count;
    }
    public void setImg(String img) 
    {
        this.img = img;
    }

    public String getImg() 
    {
        return img;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setAlbum(String album) 
    {
        this.album = album;
    }

    public String getAlbum() 
    {
        return album;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("categoryId", getCategoryId())
            .append("name", getName())
            .append("spec", getSpec())
            .append("sellPoint", getSellPoint())
            .append("price", getPrice())
            .append("count", getCount())
            .append("img", getImg())
            .append("status", getStatus())
            .append("content", getContent())
            .append("album", getAlbum())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
